/*
class Base {
    Base() {
        System.out.print("Base");
    }
}

public class Main extends Base {

    public static void main( String[] args ) {
        new Main();//1
        //调用父类无参的构造方法
        new Base();//2
    }
}*/
/*
class Base{
    public Base(String s){
        System.out.print("B");
    }
}

public class Main extends Base{
    public Main(String s) {
        super(s);
        System.out.print("D");
    }
    public static void main(String[] args){
        new Main("C");
    }
}*/
/*
public class Main{
    static int cnt = 6;
    static{
        cnt += 9;
    }
    public static void main(String[] args){
        System.out.println( "cnt = " + cnt);
    }
    static{
        cnt /=3;
    };
}*/
/*
class wain{
    public String toString() {
        System.out.print("aaa");
        return "bbb";
    }
}
    public class Main{
        public static void main(String[] args) {
            wain test = new wain();
            System.out.println(test);
        }

}
*/


